public class Money {
    public static void culculate() {
        if(Bill.time <= 20){
           Bill.money = (float)(Bill.time * 0.05);
        }
        else{
            Bill.money = (float)(1 + (Bill.time - 20) * 0.10);
        }
    }
}
